package com.example.lenovo.mvp_demo.home.model;

import com.example.lenovo.mvp_demo.home.bean.Weather;
import com.example.lenovo.mvp_demo.home.net.callback.MyNetWorkCallback;

/**
 * Created by lenovo on 2017/7/31.
 */

public class WeatherModelImpl implements WeatherModel {
    /**
     * @author 李巷阳
     * @date 2016-9-7 上午10:54:01
     */
    @Override
    public void getWeather(String cityNumber, MyNetWorkCallback<Weather> listener) {
        Weather w=new Weather();
        w.setName("李阳");
        w.setTitle("标题");
        // 访问网络返回信息
        listener.onSuccess(w);
    }
}
